3.496 \(\int \frac {x^{-1+n}}{b x^n+c x^{2 n}} \, dx\)

Optimal. Leaf size=23 \[ \frac {\log (x)}{b}-\frac {\log \left (b+c x^n\right )}{b n} \]

[Out]

ln(x)/b-ln(b+c*x^n)/b/n

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {1584, 266, 36, 29, 31} \[ \frac {\log (x)}{b}-\frac {\log \left (b+c x^n\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n)/(b*x^n + c*x^(2*n)),x]

[Out]

Log[x]/b - Log[b + c*x^n]/(b*n)

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 1584

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(m + n*p)*(a + b*x^(q -
 p))^n, x] /; FreeQ[{a, b, m, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rubi steps

\begin {align*} \int \frac {x^{-1+n}}{b x^n+c x^{2 n}} \, dx &=\int \frac {1}{x \left (b+c x^n\right )} \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x (b+c x)} \, dx,x,x^n\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,x^n\right )}{b n}-\frac {c \operatorname {Subst}\left (\int \frac {1}{b+c x} \, dx,x,x^n\right )}{b n}\\ &=\frac {\log (x)}{b}-\frac {\log \left (b+c x^n\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 22, normalized size = 0.96 \[ \frac {n \log (x)-\log \left (b+c x^n\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n)/(b*x^n + c*x^(2*n)),x]

[Out]

(n*Log[x] - Log[b + c*x^n])/(b*n)

________________________________________________________________________________________

fricas [A]  time = 0.93, size = 22, normalized size = 0.96 \[ \frac {n \log \relax (x) - \log \left (c x^{n} + b\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(b*x^n+c*x^(2*n)),x, algorithm="fricas")

[Out]

(n*log(x) - log(c*x^n + b))/(b*n)

________________________________________________________________________________________

giac [A]  time = 0.25, size = 25, normalized size = 1.09 \[ \frac {\log \left ({\left | x \right |}\right )}{b} - \frac {\log \left ({\left | c x^{n} + b \right |}\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(b*x^n+c*x^(2*n)),x, algorithm="giac")

[Out]

log(abs(x))/b - log(abs(c*x^n + b))/(b*n)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 26, normalized size = 1.13 \[ \frac {\ln \relax (x )}{b}-\frac {\ln \left (c \,{\mathrm e}^{n \ln \relax (x )}+b \right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+n)/(b*x^n+c*x^(2*n)),x)

[Out]

ln(x)/b-1/b/n*ln(c*exp(n*ln(x))+b)

________________________________________________________________________________________

maxima [A]  time = 0.90, size = 27, normalized size = 1.17 \[ \frac {\log \relax (x)}{b} - \frac {\log \left (\frac {c x^{n} + b}{c}\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(b*x^n+c*x^(2*n)),x, algorithm="maxima")

[Out]

log(x)/b - log((c*x^n + b)/c)/(b*n)

________________________________________________________________________________________

mupad [B]  time = 1.37, size = 20, normalized size = 0.87 \[ -\frac {2\,\mathrm {atanh}\left (\frac {2\,c\,x^n}{b}+1\right )}{b\,n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - 1)/(b*x^n + c*x^(2*n)),x)

[Out]

-(2*atanh((2*c*x^n)/b + 1))/(b*n)

________________________________________________________________________________________

sympy [A]  time = 16.49, size = 66, normalized size = 2.87 \[ \begin {cases} \tilde {\infty } \log {\relax (x )} & \text {for}\: b = 0 \wedge c = 0 \wedge n = 0 \\- \frac {x^{- n}}{c n} & \text {for}\: b = 0 \\\frac {\log {\relax (x )}}{b + c} & \text {for}\: n = 0 \\\frac {\frac {n^{2} \log {\relax (x )}}{n^{2} - n} - \frac {n \log {\relax (x )}}{n^{2} - n}}{b} & \text {for}\: c = 0 \\\frac {2 \log {\relax (x )}}{b} - \frac {\log {\left (\frac {b x^{n}}{c} + x^{2 n} \right )}}{b n} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n)/(b*x**n+c*x**(2*n)),x)

[Out]

Piecewise((zoo*log(x), Eq(b, 0) & Eq(c, 0) & Eq(n, 0)), (-x**(-n)/(c*n), Eq(b, 0)), (log(x)/(b + c), Eq(n, 0))
, ((n**2*log(x)/(n**2 - n) - n*log(x)/(n**2 - n))/b, Eq(c, 0)), (2*log(x)/b - log(b*x**n/c + x**(2*n))/(b*n),
True))

________________________________________________________________________________________